import request from '@/utils/request'

// 查询收资模板列表
export function listPickupTemplate(query) {
  return request({
    url: '/system/pickupTemplate/list',
    method: 'get',
    params: query
  })
}

// 查询收资模板详细
export function getPickupTemplate(id) {
  return request({
    url: '/system/pickupTemplate/' + id,
    method: 'get'
  })
}

// 新增收资模板
export function addPickupTemplate(data) {
  return request({
    url: '/system/pickupTemplate',
    method: 'post',
    data: data
  })
}

// 修改收资模板
export function updatePickupTemplate(data) {
  return request({
    url: '/system/pickupTemplate',
    method: 'put',
    data: data
  })
}

// 删除收资模板
export function delPickupTemplate(id) {
  return request({
    url: '/system/pickupTemplate/' + id,
    method: 'delete'
  })
}

// 导出收资模板
export function exportPickupTemplate(query) {
  return request({
    url: '/system/pickupTemplate/export',
    method: 'get',
    params: query
  })
}